<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html ; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="index.css">
<title>用户注册</title>
<style type="text/css">

#bottom {
	width:700px;
	height:30px;
	position:absolute;
	top:400px;
	left:120px;
}
</style>
</head>

<body>

<h1 align="center">Era新闻网用户注册</h1>
<div align="center" style="width:900px;height:380px; position:absolute;top:100px;left:240px;border:5px solid #e0e0e0">
	<div style="margin-top:40px; padding-right: 15px;padding-left: 35px">
		<table cellspacing="0" cellpadding="0" width="689" border="0"
			height="282">
			<tr>
				<td style="padding-right: 20px;" width="318"><br>
				</td>
				<td valign="top">
					<table cellspacing="0" cellpadding="0" border="0" width="364"
						height="322">
						<tr>
							<td style="background-color: #e3e3e3 " width="2" height="200"><img
								src="../image/registered.png" width="359" height="319">
							</td>
						</tr>
					</table>
				</td>
				<td style="padding-left: 30px" valign="top" width="318">
				<s:form action="UserUpdateAction!updateToDatabase.do" method="post" namespace="user">
						<table cellspacing="0" cellpadding="0" border="0" width="368"
							height="313" style="width:368px; height: 313px ">
							<tr>
								<td ><s:textfield value="%{#session.usrUpdate.usersName}" name="usersName" label="用户名" />
									<s:hidden value="%{#session.usrUpdate.usersId}" name="usersId"></s:hidden>
								</td>
							</tr>
							<tr>
								<td><s:textfield value="%{#session.usrUpdate.usersPasswd}" name="usersPasswd" label="密码" />
								</td>
							</tr>
				
							<tr>
								<td><s:textfield value="%{#session.usrUpdate.nickName}" name="nickName" label="昵称" />
								</td>
							</tr>
							<tr>
								<td><s:textfield value="%{#session.usrUpdate.age}" name="age" label="年龄" />
								</td>
							</tr>
							<tr>
								<td>
								<s:select list="#{0:'男',1:'女'}"  name="sex" label="性别" 
								  listKey="key" listValue="value" value="%{#session.usrUpdate.sex}">
								  </s:select>
								</td>
							</tr>
							<tr>
								<td><s:submit value="更新"></s:submit>
								</td>
								<td></td>
							</tr>
						</table>
					</s:form>
				</td>
			</tr>
		</table>
	</div>
	<div id="bottom">
		<center>版权所有：五组成员</center>
	</div>
</div>

</body>